<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { mapState, mapGetters, mapMutations, mapActions } from "vuex";
import util from "./assets/js/util.js";
export default {
  name: "App",
  computed: {
    ...mapState(["pageInfo"])
  },
  mounted(){
    document.getElementById('app').className ='themeb';
  },
  created() {
    let userInfo = util.getLocalStorage("userinfo");
    this.pageInfo.userinfo = userInfo ? JSON.parse(userInfo) : "";
    this.pageInfo.coinType = util.getLocalStorage("coinType")
      ? JSON.parse(util.getLocalStorage("coinType"))
      : [];
  }
};
</script>

<style lang="less">

@import url("../static/css/index.css");
@import url("../static/css/theme.less");
// .themea {
//   .theme(); //默认的样式
// }
// .themeb {
//   .theme(blue,#fff);
// }
// .themec {
//   .theme(#111,#999);
// }
#app {
  height: 100%;
  /* overflow: hidden; */
  overflow-y: scroll;
  /* position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0; */
}
html {
  height: 100%;
}
</style>
